﻿@model string[]

@Html.Hidden("OtherImages", (string)ViewBag.OtherImages)
<ul>
    @if (Model!=null)
    {
        foreach (var item in Model)
        {
        <li>
            <img src="@item" alt=""/>
            @Ajax.ActionLink("Xóa", "removeImage", new { image = item, pid = ViewBag.ProductID }, new AjaxOptions { UpdateTargetId = "product-other-images", LoadingElementId = "loading-panel", OnFailure = "ajax_failure" })
        </li>
        }
        <li style="display:none" id="choose-other-image-loading">
            <img src="/Content/images/be/loading3.gif" alt="" style="margin:34px 58px; width: 32px; height: 32px" />
        </li>
    }
</ul>
